package com.woniu.rabbit.simple_model.queue_conf;


import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 简单队列
 * */
@Configuration
public class SimpleQueueConfig {
    @Bean
    public Queue simpleQueue() {
        return new Queue("simple.queue",true);   // 指定 队列名称
    }

    @Bean
    public Queue simpleQueue02() {
        return new Queue("simple.queue02",true);   // 指定 队列名称
    }

}
